home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MPEG Toolkit
/
MPEG Toolkit.iso
/
dos
/
secmpeg3
/
decode.h
< prev
next >
Wrap
Text File
|
1997-01-01
|
2KB
|
95 lines
/* ------ OWN STUFF ------ */
INT mb_buffer[64];
/* ------ DEBUG ------ */
INT frame_count = 0;
INT decode_mdu_count = 0;
/* ------ Bit-Mask ------ */
INT extend_mask[] =
{
0xFFFFFFFE,
0xFFFFFFFC,
0xFFFFFFF8,
0xFFFFFFF0,
0xFFFFFFE0,
0xFFFFFFC0,
0xFFFFFF80,
0xFFFFFF00,
0xFFFFFE00,
0xFFFFFC00,
0xFFFFF800,
0xFFFFF000,
0xFFFFE000,
0xFFFFC000,
0xFFFF8000,
0xFFFF0000,
0xFFFE0000,
0xFFFC0000,
0xFFF80000,
0xFFF00000
};
INT CodedBlockBits=0;
INT EOBBits=0;
/* ------ Stuff for RateControl ------ */
/*
int PrateIndex[] = {0,24,24,25,30,30,50,60,60};
int FileSizeBits=0;
int Rate=0;
int BufferOffset=0;
int QDFact=1;
int QOffs=1;
int QUpdateFrequency=11;
int QUse=0;
int QSum=0;
*/
/* ------ Some internal parameters for rate control ------ */
#define DEFAULT_QUANTIZATION 8
int InitialQuant=0;
int UseQuant;
/* ------ System Definitions ------- */
int MBWidth=0; /* Number macroblocks widexhigh */
int MBHeight=0;
int HPos=0; /* Current macroblock position widexhigh */
int VPos=0;
int CurrentMBS=0; /* Current macroblock slice count */
int BaseFrame=0; /* Base frame for interpolative mode */
int CurrentFrame=0; /* Current frame in encoding */
int StartFrame=0; /* Start frame of encoding */
int LastFrame=0; /* Last frame of encoding */
int GroupFirstFrame=0; /* First frame number of current group */
int FrameOffset= -1; /* Offset by TIMECODE */
int FrameDistance=1; /* Distance between interpol. frame and base */
int FrameInterval=3; /* Frame interval between pred/intra frames */
int FrameGroup=2; /* Number of frame intervals per group */
int FrameIntervalCount=0; /* Current frame interval count */
int FrameSkip=1; /* Frame skip value */
/* ------ Fixed coding parameters ------ */
int LastDC[3];
/* ------ Book-keeping stuff ------ */
int BlockJ[] = {0,0,0,0,1,2};
int BlockV[] = {0,0,1,1,0,0};
int BlockH[] = {0,1,0,1,0,0};
int DCIntraFlag=0;
int NumberNZ;